package edu.buaa.act.travel.m.tpdl;

import org.json.JSONException;
import org.json.JSONObject;

public class ResortActivity extends TpdlActivity {
	
	private static final long serialVersionUID = 1L;
	public static final String TYPE = "resort";

	@Override
	public String toString() {
		return "景点："+name;
	}
	
	@Override 
	protected JSONObject toJSONObject(){
		JSONObject o = super.toJSONObject();
		try {
			o.put("type", TYPE);
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return o;
	}

}
